<!-- 页面乱码加这句话 -->
<%@ page language="java" isELIgnored="false"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="../common/header.jspf"%>
<link href="${ctx}/other/css/bootstrap-table.css" rel="stylesheet">
<style>
.select2-container--open {
	z-index: 9999999
}
</style>

</head>

<body>
	<div class="container-fluid" style="overflow: hidden;">
		<div class="row">
			<div class="panel-body"></div>
			<div class="container-main col-sm-12">
				<ul id="myTab" class="nav nav-tabs" style="float: left;">
					<!-- <li><a class="btn btn-primary" id="sendnewEmail"><i
							class="fa fa-envelope"></i> 新消息</a></li> -->
					<li class="active" style="text-align: center;"><a
						href="#outBox" class="btn btn-info" data-toggle="tab" id="alert1">发帖箱</a></li>
					<li style="text-align: center;"><a href="#inBox"
						class="btn btn-info" data-toggle="tab" id="alert2">回帖箱</a></li>
				</ul>
				<div id="myTabContent" class="tab-content">

					<!-- 收件箱 -->
					<div class="tab-pane " id="inBox">
						<div style="float: right; margin-top: 10px; margin-left: 5px;">
							<a class="btn btn-danger" id="deleteMailFromuser"><span><i
									class="fa fa-trash-o"></i></span></a>
						</div>
						<table id="PostReply"
							class="table table-bordered dataTable
							table-striped table-hover"
							data-toggle="table" data-classes="table table-no-bordered"
							data-url="../PostReplyController/findByCondition.action"
							data-query-params="queryParams1" data-click-to-select="true"
							data-unique-id="userId" data-pagination="true"
							data-page-size="10" data-show-refresh="true" data-search="true">
							<thead>
								<tr role="row">
									<th class="sorting_disabled" data-checkbox="true"></th>
									<th class="sorting_disabled " data-field="id">Id</th>
									<th class="sorting_disabled" data-field="fromUserName">被回复人</th>
									<th class="sorting_disabled" data-field="toUser">回复人</th>
									<th class="sorting_disabled" data-field="content">邮件内容</th>
									<th class="sorting_disabled" data-field="recieve">时间</th>
								</tr>
							</thead>
						</table>
					</div>
					
					
					<!-- 发件箱 -->
					<div class="tab-pane in active" id="outBox"
						style="margin-bottom: 100px">
						<div style="float: right; margin-top: 10px; margin-left: 5px;">
							<a class="btn btn-danger" id="deleteMailTouser"><span><i
									class="fa fa-trash-o"></i></span></a>
						</div>

						<table id="PostSend" data-toggle="table"
							data-classes="table table-no-bordered"
							class="table table-bordered dataTable table-striped table-hover"
							data-toggle="table"
							data-url="../PostSendController/findByCondition.action"
							data-query-params="queryParams" data-click-to-select="true"
							data-unique-id="userId" data-pagination="true"
							data-page-size="10" data-show-refresh="true" data-search="true">
							<thead>
								<tr role="row">
									<th class="sorting_disabled" data-checkbox="true"></th>
									<th class="sorting_disabled " data-field="id">Id</th>
									<th class="sorting_disabled" data-field="uname">发件人</th>
									<th class="sorting_disabled" data-field="title">标题</th>
									<th class="sorting_disabled" data-field="content">邮件内容</th>
									<th class="sorting_disabled" data-field="receiveTime">时间</th>
								</tr>
							</thead>
						</table>

					</div>
				</div>
				<!-- <div id="postContent"/> -->
			</div>
		</div>
	</div>



    <!-- 模拟前台模板 -->
    

















	<div class="modal fade" id="newEmail" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true"
		style="display: none;">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true" style="color: red">×</span>
					</button>
					<h5 class="modal-title">编辑帖子</h5>
				</div>
				<div id="PostSendHBox">
					<form id="PostSendForm" method="post">
						<div class="table-responsive">
							<div class="form-group">
								<h4 style="float: left; line-height: 30px;">帖子标题：</h4>
								<input type="text" id="postTitle" name="postTitle"
									class="form-control" placeholder="标题"
									style="margin-top: 20px; width: 900px;" />
								<h4 style="float: left; line-height: 30px; magin-top: 10px;">帖子正文：</h4>
								<textarea class="form-control" rows="13"
									placeholder="输入您的邮件内容.." id="postContent" name="postContent"
									style="margin-top: 20px; margin-left: 20px; width: 1130px;"></textarea>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-primary" id="reset">重置</button>
							<button type="button" class="btn btn-primary" id="sendPost">发送</button>

						</div>
					</form>
				</div>
			</div>
			<!-- modal content ends -->
		</div>
		<!-- modal dialog ends-->
	</div>
	<%@ include file="../common/bottom.jspf"%>
	<!-- hDialog -->
	<script type="text/javascript" src="${ctx}/script/jquery.hDialog.js"></script>
	<!-- easyfrom -->
	<script type="text/javascript" src="${ctx}/other/js/moment.min.js"></script>
	<script type="text/javascript" src="${ctx}/other/js/moment.js"></script>
	<script type="text/javascript" src="${ctx}/other/js/select2.full.js"></script>
	<script type="text/javascript"
		src="${ctx}/other/js/select2.full.min.js"></script>
	<script type="text/javascript" src="${ctx}/other/js/select2.js"></script>
	<script type="text/javascript" src="${ctx}/other/js/select2.min.js"></script>
	<script type="text/javascript" src="${ctx}/script/pm/postList.js"></script>
	<script type="text/javascript">
		$("#UserCombox").select2();
		$('.select2').css('width', '100%');
		$('.selection').css('width', '100%');
		$('.select2-selection').css('width', '100%');
	</script>
</body>
</html>